/**
 * 验证码返回信息
 */

export class CaptchaDto {
  public code: string; // 验证码标识
  public imgBytes: any; // 验证码图片二进制
  public imgUrl: any; // 验证码图片地址

  constructor(data: any = {}) {
    this.code = data.code;
    this.imgBytes = data.imgBytes;
    this.imgUrl = data.imgUrl;
  }
}

/**
 * 登录参数
 */
export class LoginBean {
  public account: string; // 登录账号
  public password: string; // 密码
  public captcha: string; // 验证码
  public code: string; // 验证码code

  constructor(data: any = {}) {
    this.account = data.account;
    this.password = data.password;
    this.captcha = data.captcha;
    this.code = data.code;
  }
}

/**
 * 登录返回信息
 */
export class LoginDto {
  public accessToken: string; // 用户token
  public validTime: number; // token有效期
  public updateTime: any; // 创建时间
  public refreshToken: string; // 刷新token

  constructor(data: any = {}) {
    this.accessToken = data.accessToken;
    this.validTime = data.validTime;
    this.updateTime = data.updateTime;
    this.refreshToken = data.refreshToken;
  }

}

/**
 * 系统
 */
export class SystemDto {
  public id: string; // 主键id
  public name: string; // 系统名称
  public code: string; // 系统标识,全局唯一
  public status: string; // 状态，对应字典表的status
  public createTime: string; // 创建时间
  public updateTime: string; // 更新时间
  public systemInfos: Array<SystemInfoDto>; // 系统信息

  constructor(data: any = {}) {
    this.id = data.id;
    this.name = data.name;
    this.code = data.code;
    this.status = data.status;
    this.createTime = data.createTime;
    this.updateTime = data.updateTime;
    this.systemInfos = data.systemInfos;
  }
}

/**
 * 系统信息
 */
export class SystemInfoDto {
  public id: string; // 主键id
  public description: string; // 描述
  public systemCode: string; // 系统标识,对应系统表的code
  public code: string; // 内容
  public value: string; // 内容
  public status: string; // 状态，对应字典表的status
  public createTime: string; // 创建时间
  public updateTime: string; // 更新时间

  constructor(data: any = {}) {
    this.id = data.id;
    this.description = data.description;
    this.systemCode = data.systemCode;
    this.code = data.code;
    this.value = data.value;
    this.status = data.status;
    this.createTime = data.createTime;
    this.updateTime = data.updateTime;
  }
}



